package entity

type User struct {
	Id       int    `json:"id" sql:"id" validate:"required,number"`
	Username string `json:"username" sql:"username" validate:"required,min=3,max=32"`
	Password string `json:"password" sql:"password" validate:"required,email,min=6,max=32"`
	Sex      int8   `json:"sex" sql:"sex" validate:"required,number"`
}

func (u User) TableName() string {
	return "t_user"
}
